from django.db import models

# Create your models here.
class Topic(models.Model):
    title = models.CharField(max_length=200)
    post_date = models.DateTimeField('Date Posted')

    def __unicode__(self):
        return self.title

class Message(models.Model):
    topic = models.ForeignKey(Topic)
    title = models.CharField(max_length=200)
    body = models.CharField(max_length=3000)

    def __unicode__(self):
        return self.title

